package com.codeoss.module.purchase.service.impl;

import java.util.List;

import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.codeoss.framework.service.impl.BaseService;
import com.codeoss.module.purchase.dao.PurchaseRequisitionLineMapper;
import com.codeoss.module.purchase.model.PurchaseRequisitionLine;
import com.codeoss.module.purchase.service.IPurchaseRequisitionLineService;

@Service
public class PurchaseRequisitionLineService extends BaseService<PurchaseRequisitionLineMapper, PurchaseRequisitionLine>
		implements IPurchaseRequisitionLineService {

	@Override
	public List<PurchaseRequisitionLine> getLineListByPurchaseRequistionId(Long purchaseRequisitionId) {
		// TODO Auto-generated method stub
		QueryWrapper<PurchaseRequisitionLine> query = new QueryWrapper<PurchaseRequisitionLine>();
		query.eq("purchase_requisition_id", purchaseRequisitionId);
		List<PurchaseRequisitionLine> lineList=list(query);
		return lineList;
	}
}